.container {
  min-height: 100vh;
  background-color: #f5f5f5;
}

/* 患者信息卡片 */
.patientCard {
  background: white;
  margin: 16px;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.patientInfo {
  flex: 1;
}

.patientName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.patientId {
  font-size: 14px;
  color: #666;
}

.switchButton {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #1890ff;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid #1890ff;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.switchButton:hover {
  background: #e6f7ff;
}

.switchIcon {
  font-size: 16px;
}

.switchText {
  font-size: 14px;
}

/* 标签页 */
.tabs {
  display: flex;
  background: white;
  margin: 0 16px 16px 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.tab.activeTab {
  color: white;
  background: #1890ff;
  font-weight: 600;
}

/* 预约项目列表 */
.appointmentList {
  padding: 0 16px;
}

.appointmentCard {
  background: white;
  margin-bottom: 12px;
  padding: 40px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 80px;
}

.appointmentCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.appointmentContent {
  flex: 1;
}

.appointmentTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.appointmentTime {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.appointmentDetails {
  margin-top: 8px;
}

.detailItem {
  font-size: 12px;
  color: #999;
  margin-bottom: 2px;
}

.appointmentAction {
  margin-left: 16px;
}

.actionText {
  color: #1890ff;
  font-size: 14px;
  font-weight: 500;
}

.bookedText {
  color: #52c41a;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0;
}

/* 模态框样式 */
.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}

.modalContent {
  background: white;
  border-radius: 12px 12px 0 0;
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.modalTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.closeButton {
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.closeButton:hover {
  color: #666;
}

.patientList {
  padding: 16px 20px;
}

.patientItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.patientItem:hover {
  background-color: #f8f9fa;
}

.patientItem.selectedPatient {
  background-color: #e6f7ff;
}

.patientItem:last-child {
  border-bottom: none;
}

.currentIndicator {
  font-size: 12px;
  color: #1890ff;
  background: #e6f7ff;
  padding: 2px 8px;
  border-radius: 4px;
}

/* 已预约卡片样式 */
.bookedCard {
  padding: 0;
  display: block;
  min-height: auto;
}

.cardIndicator {
  display: none;
}

.cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 16px 16px 0 16px;
}

.arrowIcon {
  font-size: 18px;
  color: #999;
  margin-left: 8px;
}

.statusBadge {
  background: #e6f7ff;
  color: #1890ff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.statusBadge .statusText {
  color: #1890ff;
}

/* 不同状态的样式 */
.statusBadge .statusText[data-status="cancelled"] {
  color: #999;
}

.statusBadge .statusText[data-status="completed"] {
  color: #52c41a;
}

.statusBadge[data-status="cancelled"] {
  background: #f5f5f5;
}

.statusBadge[data-status="completed"] {
  background: #f6ffed;
}

.appointmentDetails {
  padding: 0 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detailRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detailLabel {
  font-size: 14px;
  color: #999;
  font-weight: 400;
}

.detailValue {
  font-size: 14px;
  color: #333;
  font-weight: 400;
  text-align: right;
  flex: 1;
  margin-left: 16px;
}

.actionButtons {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.rescheduleButton,
.cancelButton {
  flex: 1;
  height: 36px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: white;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rescheduleButton:hover {
  border-color: #1890ff;
  color: #1890ff;
}

.cancelButton:hover {
  border-color: #ff4d4f;
  color: #ff4d4f;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .patientCard {
    margin: 12px;
    padding: 12px;
  }
  
  .tabs {
    margin: 0 12px 12px 12px;
  }
  
  .tab {
    padding: 12px;
    font-size: 15px;
  }
  
  .appointmentList {
    padding: 0 12px;
  }
  
  .appointmentCard {
    padding: 16px 12px;
    min-height: 70px;
  }
  
  .appointmentTitle {
    font-size: 15px;
  }
  
  .appointmentTime {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .patientCard {
    margin: 8px;
    padding: 12px;
  }
  
  .tabs {
    margin: 0 8px 8px 8px;
  }
  
  .tab {
    padding: 10px;
    font-size: 14px;
  }
  
  .appointmentList {
    padding: 0 8px;
  }
  
  .appointmentCard {
    padding: 14px 10px;
    min-height: 65px;
  }
  
  .appointmentTitle {
    font-size: 14px;
  }
  
  .appointmentTime {
    font-size: 12px;
  }
}
